import Vue from 'vue'
import Router from 'vue-router'
import ptrouter from './pt-router.js'
Vue.use(Router)

export default new Router({
	base: process.env.BASE_URL,
	routes: [
		ptrouter,
		{
			path: '/data',
			name: 'data',
			component: () => import('@/statistics/main.vue'),
			children: [{
					path: '/data',
					name: 'data',
					component: () => import('@/statistics/views/index/index.vue'),
					meta: {
						title: '数据统计',
						noCache: false,
					},
				},
				{
					path: '/map-data',
					component: () => import('@/statistics/views/map/index.vue'),
					meta: {
						title: '地图数据',
						noCache: false
					}
				},
				{
					path: '/model-list',
					component: () => import('@/statistics/views/model/index.vue'),
					meta: {
						title: '漏斗数据',
						noCache: false
					}
				},
				{
					path: '/user-data',
					component: () => import('@/statistics/views/user/index.vue'),
					meta: {
						title: '用户数据',
						noCache: false
					}
				},
				{
					path: '/merchant-data',
					component: () => import('@/statistics/views/merchant/index.vue'),
					meta: {
						title: '商家数据',
						noCache: false
					}
				}
			],
		},
		{
			path: '/',
			name: 'login',
			component: () => import('@/views/login/login.vue'),
			meta: {
				title: '登录',
			}
		},
		{
			path: '/maitou',
			name: 'maitou',
			component: () => import('@/views/printing/maitou.vue'),
			meta: {
				title: '唛头',
			}
		},
		{
			path: '/redirect',
			component: () => import('@/views/main.vue'),
			children: [{
				path: '/redirect/:path*',
				component: () => import('@/views/redirect/index')
			}]
		},
		{
			path: '/main',
			name: 'main',
			component: () => import('@/views/main.vue'),
			children: [{
				path: '/index',
				name: 'index',
				component: () => import('@/views/index/index.vue'),
				meta: {
					title: '首页',
					noCache: true,
					affix: true
				}
			}]
		},
		// 信息
		{
			path: '/message',
			name: 'message',
			component: () => import('@/views/main.vue'),
			children: [
				{
					path: '/role_list',
					name: 'role_list',
					component: () => import('@/views/message/role_list'),
					meta: {
						title: '角色管理',
						noCache: true,
					}
				},
				{
					path: '/white_list',
					name: 'white_list',
					component: () => import('@/views/message/white_list'),
					meta: {
						title: '白名单',
						noCache: true,
					}
				},
				{
					path: "/custom_templates",
					name: "custom_templates",
					component: () => import('@/views/message/custom_templates'),
					meta: {
						title: '模板管理',
						noCache: true
					}
				}
			]
		},
		// 用户
		{
			path: '/user',
			name: 'user',
			component: () => import('@/views/main.vue'),
			children: [{
					path: '/user_list',
					name: 'user_list',
					component: () => import('@/views/user/user_list'),
					meta: {
						title: '用户列表',
						noCache: false,
					}
				},
				
				{
					path: '/b_logistics_list',
					name: 'b_logistics_list',
					component: () => import('@/views/user/b_logistics_list'),
					meta: {
						title: '商家物流点',
						noCache: false,
					}
				},
				
				{
					path: '/employee_list',
					name: 'employee_list',
					component: () => import('@/views/user/employee_list'),
					meta: {
						title: '员工列表',
						noCache: false,
					}
				},
				{
					path: '/fission_user',
					name: 'fission_user',
					component: () => import('@/views/user/fission_user'),
					meta: {
						title: '裂变用户',
						noCache: true,
					}
				},
				{
					path: '/user_migration',
					name: 'user_migration',
					component: () => import('@/views/user/user_migration'),
					meta: {
						title: '用户迁徒',
						noCache: false
					}
				}, 
				{
					path: "/design_list",
					name: "design_list",
					component: () => import('@/views/user/design_list.vue'),
					meta: {
						title: "设计师列表",
						noCache: true
					}
				}, {
					path: "/add_design",
					name: "add_design",
					component: () => import('@/views/user/add_design.vue'),
					meta: {
						title: "添加设计师",
						noCache: true
					}
				},
				{
					path: '/online_list',
					name: 'online_list',
					component: () => import('@/views/user/online_list'),
					meta: {
						title: '用户在线列表',
						noCache: true,
					}
				},
			]
		},
		// 商品
		{
			path: '/goods',
			name: 'goods',
			component: () => import('@/views/main.vue'),
			children: [{
					path: '/goods_list',
					name: 'goods_list',
					component: () => import('@/views/goods/goods_list'),
					meta: {
						title: '平台商品列表',
						noCache: false,
					}
				}, {
					path: '/customized_goods_list',
					name: 'customized_goods_list',
					component: () => import('@/views/goods/customized_goods_list'),
					meta: {
						title: '定制商品列表',
						noCache: false,
					}
				},
				{
					path: '/store_goods_list',
					name: 'store_goods_list',
					component: () => import('@/views/goods/store_goods_list'),
					meta: {
						title: '商家商品列表',
						noCache: false,
						remarks: '商家商品列表'
					}
				},
				{
					path: '/f_goods_list',
					name: 'f_goods_list',
					component: () => import('@/views/goods/f_goods_list'),
					meta: {
						title: '工厂商品列表',
						noCache: false,
						remarks: '工厂商品列表'
					}
				},
				{
					path: '/goods_details',
					name: 'goods_details',
					component: () => import('@/views/goods/goods_details'),
					meta: {
						title: '商品详情',
						noCache: true,
					}
				},
				{
					path: '/edit_goods',
					name: 'edit_goods',
					component: () => import('@/views/goods/edit_goods'),
					meta: {
						title: '编辑商品',
						noCache: true,
					}
				},
				{
					path: '/store_goods_details',
					name: 'store_goods_details',
					component: () => import('@/views/goods/store_goods_details'),
					meta: {
						title: '商品详情',
						noCache: true,
					}
				},
				{
					path: '/add_goods',
					name: 'add_goods',
					component: () => import('@/views/goods/add_goods'),
					meta: {
						title: '添加商品',
						noCache: false,
					}
				},
				{
					path: '/add_combination',
					name: 'add_combination',
					component: () => import('@/views/goods/add_combination'),
					meta: {
						title: '添加组合',
						noCache: true,
					}
				},
				{
					path: '/add_goods_comment',
					name: 'add_goods_comment',
					component: () => import('@/views/goods/add_goods_comment'),
					meta: {
						title: '评论详情',
						noCache: true,
					}
				},
				{
					path: '/b_add_platform_goods_list',
					name: 'b_add_platform_goods_list',
					component: () => import('@/views/goods/b_up_platform_goods/b_add_platform_goods_list'),
					meta: {
						title: '我的平台商品',
						noCache: true,
					}
				},
				{
					path: '/b_goods_classify',
					name: 'b_goods_classify',
					component: () => import('@/views/goods/b_goods_classify'),
					meta: {
						title: '商家商品分类',
						noCache: true,
					}
				},
				{
					path: '/b_edit_classify',
					name: "b_edit_classify",
					component: () => import('@/components/layer-dialog/add-goods-classify'),
					meta: {
						title: '商品分类',
						noCache: true,
					}
				}
			]

		},
		// 订单
		{
			path: '/order',
			name: 'order',
			component: () => import('@/views/main.vue'),
			children: [{
					path: '/order_list',
					name: 'order_list',
					component: () => import('@/views/order/order_list'),
					meta: {
						title: '订单列表',
						noCache: false,
					}
				},
				{
					path: '/factory_order',
					name: 'factory_order',
					component: () => import('@/views/order/factory_order'),
					meta: {
						title: '工厂订单',
						noCache: false,
					}
				},
				{
					path: '/warehouse_order',
					name: 'warehouse_order',
					component: () => import('@/views/order/warehouse_order'),
					meta: {
						title: '仓管订单',
						noCache: false,
					}
				},
				{
					path: '/order_details',
					name: 'order_details',
					component: () => import('@/views/order/order_details.vue'),
					meta: {
						title: '订单详情',
						noCache: true,
					}
				},
				{
					path: "/order_group_goods",
					name: 'order_group_goods',
					component: () => import('@/views/order/order_group_goods'),
					meta: {
						title: "套餐订单",
						noCache: true
					}
				},
				{
					path: '/fission_order',
					name: 'fission_order',
					component: () => import('@/views/order/fission_order'),
					meta: {
						title: '裂变订单',
						noCache: true,
					}
				},
				{
					path: '/purchase_order',
					name: 'purchase_order',
					component: () => import('@/views/order/purchase_order'),
					meta: {
						title: '采购订单',
						noCache: true,
					}
				},
				{
					path: '/purchase_order_factory',
					name: 'purchase_order_factory',
					component: () => import('@/views/order/purchase_order_factory'),
					meta: {
						title: '采购订单(工厂)',
						noCache: true,
					}
				},
				{
					path: '/purchase_order_detail',
					name: 'purchase_order_detail',
					component: () => import('@/views/order/purchase_order_detail'),
					meta: {
						title: '采购订单详情',
						noCache: true,
					}
				},
				{
					path: '/order_list_goods',
					name: 'order_list_goods',
					component: () => import('@/views/order/order_list_goods'),
					meta: {
						title: '订单列表（商品）',
						noCache: true,
					}
				},
				{
					path: '/offline_order',
					name: 'offline_order',
					component: () => import('@/views/order/offline_order'),
					meta: {
						title: '线下订单',
						noCache: true,
					}
				},
				{
					path: '/offline_order_form',
					name: 'offline_order_form',
					component: () => import('@/views/order/offline_order_form'),
					meta: {
						title: '创建线下订单',
						noCache: true,
					}
				},
			]
		},
		// 库存
		{
			path: '/warehousing',
			name: 'warehousing',
			component: () => import('@/views/main.vue'),
			children: [
				{
					path: '/warehousing_list',
					name: 'warehousing_list',
					component: () => import('@/views/warehouReport/warehousing_list'),
					meta: {
						title: '入库统计',
						noCache: true,
					}
				},
				{
					path: '/outbound_list',
					name: 'outbound_list',
					component: () => import('@/views/warehouReport/outbound_list'),
					meta: {
						title: '出库统计',
						noCache: true,
					}
				},
				{
					path: '/deliver_list',
					name: 'deliver_list',
					component: () => import('@/views/warehouReport/deliver_list'),
					meta: {
						title: '发货明细',
						noCache: false,
					}
				},
				{
					path: "/inventory_list",
					name: "inventory_list",
					component: () => import('@/views/warehouReport/inventory_list'),
					meta: {
						title: '库存概览',
						noCache: false
					}
				},
				{
					path: "/predict_aog_list",
					name: "predict_aog_list",
					component: () => import('@/views/warehouReport/predict_aog_list'),
					meta: {
						title: '在途库存',
						noCache: false
					}
				},
				{
					path: "/partition_list",
					name: "partition_list",
					component: () => import('@/views/warehouReport/partition_list'),
					meta: {
						title: '分区列表',
						noCache: false
					}
				},
				{
					path: "/stock_stat",
					name: "stock_stat",
					component: () => import('@/views/warehouReport/stock_stat'),
					meta: {
						title: '库存统计',
						noCache: false
					}
				},
				{
					path: "/stock_detail",
					name: "stock_detail",
					component: () => import('@/views/warehouReport/stock_detail'),
					meta: {
						title: '库存明细',
						noCache: false
					}
				},
				{
					path: "/stock_stat_factory",
					name: "stock_stat_factory",
					component: () => import('@/views/warehouReport/stock_stat_factory'),
					meta: {
						title: '库存统计（工厂）',
						noCache: false
					}
				},
				{
					path: "/stock_detail_factory",
					name: "stock_detail_factory",
					component: () => import('@/views/warehouReport/stock_detail_factory'),
					meta: {
						title: '库存明细（工厂）',
						noCache: false
					}
				},
				{
					path: "/send",
					name: "send",
					component: () => import('@/views/warehouReport/send'),
					meta: {
						title: '发货管理',
						noCache: false
					}
				},
				{
					path: "/send_factory",
					name: "send_factory",
					component: () => import('@/views/warehouReport/send_factory'),
					meta: {
						title: '发货管理（工厂）',
						noCache: false
					}
				},
			]
		},
		// 财务
		{
			path: '/finance',
			name: 'finance',
			component: () => import('@/views/main.vue'),
			children: [
				{
					path: '/settlement_data',
					name: 'settlement_data',
					component: () => import('@/views/finance/settlement_data'),
					meta: {
						title: '结算数据',
						noCache: true,
					}
				},
				{
					path: '/settlement_details',
					name: 'settlement_details',
					component: () => import('@/views/finance/settlement_details'),
					meta: {
						title: '结算明细',
						noCache: true,
					}
				},
				{
					path: '/settlement_details_factory',
					name: 'settlement_details_factory',
					component: () => import('@/views/finance/settlement_details_factory'),
					meta: {
						title: '结算明细(工厂)',
						noCache: true,
					}
				},
				{
					path: '/deduction_list_supply',
					name: 'deduction_list_supply',
					component: () => import('@/views/finance/deduction_list_supply'),
					meta: {
						title: '供应扣款清单',
						noCache: true,
					}
				},
				{
					path: '/deduction_list_factory',
					name: 'deduction_list_factory',
					component: () => import('@/views/finance/deduction_list_factory'),
					meta: {
						title: '扣款清单(工厂)',
						noCache: true,
					}
				},
				{
					path: '/split_bill',
					name: 'split_bill',
					component: () => import('@/views/finance/split_bill'),
					meta: {
						title: '分账明细',
						noCache: true,
					}
				},
				{
					path: '/split_bill_factory',
					name: 'split_bill_factory',
					component: () => import('@/views/finance/split_bill_factory'),
					meta: {
						title: '分账明细(工厂)',
						noCache: true,
					}
				},
				{
					path: '/preStorage_management',
					name: 'preStorage_management',
					component: () => import('@/views/finance/preStorage_management'),
					meta: {
						title: '预存管理',
						noCache: true,
					}
				},
				{
					path: '/balance_details',
					name: 'balance_details',
					component: () => import('@/views/finance/balance_details'),
					meta: {
						title: '余额明细',
						noCache: true,
					}
				},
				{
					path: '/balance_details_store',
					name: 'balance_details_store',
					component: () => import('@/views/finance/balance_details_store'),
					meta: {
						title: '余额明细(商家)',
						noCache: true,
					}
				},
				{
					path: '/income_details',
					name: 'income_details',
					component: () => import('@/views/finance/income_details'),
					meta: {
						title: '收入明细',
						noCache: true,
					}
				},
				{
					path: '/income_stat',
					name: 'income_stat',
					component: () => import('@/views/finance/income_stat'),
					meta: {
						title: '收入统计',
						noCache: true,
					}
				},
				{
					path: '/commission_stat',
					name: 'commission_stat',
					component: () => import('@/views/finance/commission_stat'),
					meta: {
						title: '佣金统计',
						noCache: true,
					}
				},
			]
		},
		// 数据
		{
			path: '/data',
			name: 'data',
			component: () => import('@/views/main.vue'),
			children: [{
				path: '/profit_statistics',
				name: 'profit_statistics',
				component: () => import('@/views/data/profit_statistics.vue'),
				meta: {
					title: '利润数据',
					noCache: true,
				}
			},{
				path: '/order_data',
				name: 'order_data',
				component: () => import('@/views/data/order_data'),
				meta: {
					title: '订单数据',
					noCache: true,
				}
			},
			{
				path: '/total_users',
				name: 'total_users',
				component: () => import('@/views/data/total_users'),
				meta: {
					title: '用户数据',
					noCache: true,
				}
			},
			{
				path: '/merchant',
				name: 'merchant',
				component: () => import('@/views/data/merchant'),
				meta: {
					title: '商户数据',
					noCache: true,
				}
			},
			{
				path: '/performance',
				name: 'performance',
				component: () => import('@/views/data/performance'),
				meta: {
					title: '业绩统计',
					noCache: true,
				}
			},
			{
				path: '/platform_goods',
				name: 'platform_goods',
				component: () => import('@/views/data/platform_goods'),
				meta: {
					title: '平台商品统计',
					noCache: true,
				}
			},
			{
				path: '/merchant_goods',
				name: 'merchant_goods',
				component: () => import('@/views/data/merchant_goods'),
				meta: {
					title: '商家商品',
					noCache: true,
				}
			},
			{
				path: '/commission_list',
				name: 'commission_list',
				component: () => import('@/views/data/commission_list'),
				meta: {
					title: '业绩提成列表',
					noCache: true,
				}
			},
			{
				path: '/factory_income',
				name: 'factory_income',
				component: () => import('@/views/data/factory_income'),
				meta: {
					title: '收入明细',
					noCache: true,
				}
			},
			{
				path: '/factory_sub_account',
				name: "factory_sub_account",
				component: () => import('@/views/data/factory_sub_account.vue'),
				meta: {
					title: '工厂分账打款',
					noCache: true
				}
			},
			{
				path:'/after_data',
				name:'after_data',
				component:() => import('@/views/data/after_data.vue'),
				meta:{
					title:'售后数据',
					noCache:true
				}
			},
			{
				path:'/after_goods_data',
				name:'after_goods_data',
				component:() => import('@/views/data/after_goods_data.vue'),
				meta:{
					title:'售后商品数据',
					noCache:true
				}
			},
			{
				path:'/goods-state',
				name:'goods-state',
				component:() => import('@/views/data/goods-state.vue'),
				meta:{
					title:'产品统计',
					noCache: true
				}
			}
		]
		},
		// 运营
		{
			path:'/operation',
			name:'operation',
			component:()=> import('@/views/main.vue'),
			children:[
				{
					path: '/foot_analysis',
					name: 'foot_analysis',
					component: () => import('@/views/operation/foot_analysis'),
					meta: {
						title: '用户足迹',
						noCache: true,
					}
				},
				{
					path: '/foot_goods',
					name: 'foot_goods',
					component: () => import('@/views/operation/foot_goods'),
					meta: {
						title: '商品足迹',
						noCache: true,
					}
				},
				{
					path: '/foot_details',
					name: 'foot_details',
					component: () => import('@/views/operation/foot_details'),
					meta: {
						title: '足迹详情',
						noCache: true,
					}
				},
				{
					path: '/foot_activity',
					name: 'foot_activity',
					component: () => import('@/views/operation/foot_activity'),
					meta: {
						title: '活动足迹',
						noCache: true,
					}
				},
				{
					path: '/tab_list',
					name: 'tab_list',
					component: () => import('@/views/operation/tab_list'),
					meta: {
						title: '顶部导航',
						noCache: true,
					}
				},
				{
					path: '/card_tab_list',
					name: 'card_tab_list',
					component: () => import('@/views/operation/card_tab_list'),
					meta: {
						title: '卡片列表',
						noCache: true,
					}
				},
				{
					path: '/class_list',
					name: 'class_list',
					component: () => import('@/views/operation/class_list'),
					meta: {
						title: '分类列表',
						noCache: true,
					}
				},
				{
					path: '/space_list',
					name: 'space_list',
					component: () => import('@/views/operation/space_list'),
					meta: {
						title: '空间列表',
						noCache: true,
					}
				},
				{
					path: '/style_list',
					name: 'style_list',
					component: () => import('@/views/operation/style_list'),
					meta: {
						title: '风格列表',
						noCache: true,
					}
				},
				{
					path: '/texture_list',
					name: 'texture_list',
					component: () => import('@/views/operation/texture_list'),
					meta: {
						title: '材质列表',
						noCache: true,
					}
				},
				{
					path: '/customization_class_list',
					name: 'customization_class_list',
					component: () => import('@/views/operation/customization_class_list'),
					meta: {
						title: '定制分类列表',
						noCache: true
					}
				},
				{
					path: '/shelf_list',
					name: 'shelf_list',
					component: () => import('@/views/operation/shelf_list'),
					meta: {
						title: '货架列表',
						noCache: true,
					}
				},
				{
					path: '/shelf_edit',
					name: 'shelf_edit',
					component: () => import('@/views/operation/shelf_edit'),
					meta: {
						title: '编辑货架',
						noCache: true,
					}
				},
				{
					path: '/after_sale_list',
					name: 'after_sale_list',
					component: () => import('@/views/operation/after_sale_list'),
					meta: {
						title: '售后列表',
						noCache: false,
					}
				},
				{
					path: '/add_after_sale',
					name: 'add_after_sale',
					component: () => import('@/views/operation/add_after_sale'),
					meta: {
						title: '添加售后',
						noCache: true,
					}
				},
				{
					path: '/etit_after_sale',
					name: 'etit_after_sale',
					component: () => import('@/views/operation/etit_after_sale'),
					meta: {
						title: '编辑售后',
						noCache: true,
					}
				},
				{
					path: '/barter_list',
					name: 'barter_list',
					component: () => import('@/views/operation/barter_list'),
					meta: {
						title: '补/换货列表',
						noCache: true,
					}
				},
				{
					path: '/cart_list',
					name: 'cart_list',
					component: () => import('@/views/operation/cart_list'),
					meta: {
						title: '购物车列表',
						noCache: true,
					}
				},
				{
					path: '/image_list',
					name: 'image_list',
					component: () => import('@/views/operation/image_list'),
					meta: {
						title: '图片列表',
						noCache: true,
					}
				},
				{
					path: '/store_spread_ranking',
					name: 'store_spread_ranking',
					component: () => import('@/views/operation/store_spread_ranking'),
					meta: {
						title: '商家推广排行榜',
						noCache: true,
					}
				},
				{
					path: '/store_goods_ranking',
					name: 'store_goods_ranking',
					component: () => import('@/views/operation/store_goods_ranking'),
					meta: {
						title: '商家展示排行榜',
						noCache: true,
					}
				},
				{
					path: '/degree_of_use_ranking',
					name: 'degree_of_use_ranking',
					component: () => import('@/views/operation/degree_of_use_ranking'),
					meta: {
						title: '用户使用排行榜',
						noCache: true,
					}
				},
				{
					path: '/user_spread_ranking',
					name: 'user_spread_ranking',
					component: () => import('@/views/operation/user_spread_ranking'),
					meta: {
						title: '用户推广排行榜',
						noCache: true,
					}
				},
				{
					path: '/product_sales_ranking',
					name: 'product_sales_ranking',
					component: () => import('@/views/operation/product_sales_ranking'),
					meta: {
						title: '产品销售排行榜',
						noCache: true,
					}
				},
				{
					path: '/spread_user',
					name: 'spread_user',
					component: () => import('@/views/operation/spread_user'),
					meta: {
						title: '推广用户',
						noCache: true,
					}
				},
				{
					path: "/plant_market_ranking",
					name: "plant_market_ranking",
					component: () => import('@/views/operation/plant_market_ranking'),
					meta: {
						title: "工厂销售排行榜",
						noCache: true,
					}
				},
				{
					path: '/square_type_list',
					name: 'square_type_list',
					component: () => import('@/views/operation/square_type_list'),
					meta: {
						title: '广场分类列表',
						noCache: true,
					}
				},
				{
					path:'/grouping_list',
					name:'grouping_list',
					component:()=> import('@/views/operation/grouping_list'),
					meta:{
						title:'分组列表',
						noCache: true
					}
				},
				{
					path:'/label_list',
					name:'label_list',
					component:()=> import('@/views/operation/label_list'),
					meta:{
						title:'标签列表',
						noCache:true
					}
				},
				{
					path:'/brand_class_list',
					name:'brand_class_list',
					component:()=> import('@/views/operation/brand_class_list'),
					meta:{
						title:'品牌分类列表',
						noCache:true
					}
				},
				{
					path:'/brand_list',
					name:'brand_list',
					component:()=> import('@/views/operation/brand_list'),
					meta:{
						title:'品牌列表',
						noCache:true
					}
				},
				{
					path:'/advanced',
					name:'advanced',
					component:()=> import('@/views/operation/advanced'),
					meta:{
						title:'高端产品',
						noCache:true
					}
				},
				{
					path:'/about',
					name:'about',
					component:()=> import('@/views/operation/about'),
					meta:{
						title:'总部信息',
						noCache:true
					}
				}
			]
		},
		// 营销
		{
			path:'/marketing',
			name:'marketing',
			component:()=> import('@/views/main.vue'),
			children:[
				{
					path: '/add_activity',
					name: 'add_activity',
					component: () => import('@/views/marketing/add_activity'),
					meta: {
						title: '添加活动',
						noCache: true,
					}
				},
				{
					path: '/activity_list',
					name: 'activity_list',
					component: () => import('@/views/marketing/activity_list'),
					meta: {
						title: '裂变活动',
						noCache: true,
					}
				},
				{
					path: '/signUp',
					name: 'signUp',
					component: () => import('@/views/marketing/signUp'),
					meta: {
						title: '报名统计',
						noCache: true,
					}
				},
				{
					path: '/activity_promotion',
					name: 'activity_promotion',
					component: () => import('@/views/marketing/activity_promotion'),
					meta: {
						title: '活动推广',
						noCache: true,
					}
				},
				{
					path: '/relation_image',
					name: 'relation_image',
					component: () => import('@/views/marketing/relation_image'),
					meta: {
						title: '活动图片',
						noCache: true,
					}
				},
				{
					path: '/case_list',
					name: 'case_list',
					component: () => import('@/views/marketing/case_list.vue'),
					meta: {
						title: '案例列表',
						noCache: true,
					}
				},
				{
					path: '/case_data',
					name: 'case_data',
					component: () => import('@/views/marketing/case_data.vue'),
					meta: {
						title: '案例详情',
						noCache: true,
					}
				},
				{
					path: '/popup_list',
					name: 'popup_list',
					component: () => import('@/views/marketing/popup_list'),
					meta: {
						title: '弹窗管理',
						noCache: true,
					}
				},
				{
					path: '/news_list',
					name: 'news_list',
					component: () => import('@/views/marketing/news_list'),
					meta: {
						title: '资讯列表',
						noCache: true,
					}
				},
				{
					path: '/news_data',
					name: 'news_data',
					component: () => import('@/views/marketing/news_data.vue'),
					meta: {
						title: '资讯详情',
						noCache: true,
					}
				},
				{
					path: '/poster_list',
					name: 'poster_list',
					component: () => import('@/views/marketing/poster_list'),
					meta: {
						title: '海报列表',
						noCache: true,
					}
				},
				{
					path: '/poster_data',
					name: 'poster_data',
					component: () => import('@/views/marketing/poster_data'),
					meta: {
						title: '海报详情',
						noCache: true,
					}
				},
				{
					path: "/video_list",
					name: "video_list",
					component: () => import('@/views/marketing/video_list.vue'),
					meta: {
						title: "视频列表",
						noCache: true
					}
				},
				{
					path: '/vr_list',
					name: 'vr_list',
					component: () => import('@/views/marketing/vr_list'),
					meta: {
						title: 'VR列表',
						noCache: true,
					}
				},
				{
					path: '/vr_comment_list',
					name: 'vr_comment_list',
					component: () => import('@/views/marketing/vr_comment_list'),
					meta: {
						title: 'VR评论',
						noCache: true,
					}
				},
				{
					path: '/vr_goods_edit',
					name: 'vr_goods_edit',
					component: () => import('@/views/marketing/vr_goods_edit'),
					meta: {
						title: 'VR商品',
						noCache: true,
					}
				},
				{
					path: '/banner_list',
					name: 'banner_list',
					component: () => import('@/views/marketing/banner_list'),
					meta: {
						title: '轮播图管理',
						noCache: true,
					}
				},
				{
					path: '/banner_data',
					name: 'banner_data',
					component: () => import('@/views/marketing/banner_data.vue'),
					meta: {
						title: '轮播图详情',
						noCache: true,
					}
				},
				{
					path: '/realImage_list',
					name: 'realImage_list',
					component: () => import('@/views/marketing/realImage_list'),
					meta: {
						title: '实拍图列表',
						noCache: true,
					}
				},
				{
					path: "/match_list",
					name: "match_list",
					component: () => import('@/views/marketing/match_list'),
					meta: {
						title: "搭配助手",
						noCache: true
					}
				},
				{
					path: '/college_lists',
					name: 'college_lists',
					component: () => import('@/views/marketing/college_lists'),
					meta: {
						title: '商学院管理',
						noCache: true,
					}
				},
				{
					path: '/college_data',
					name: 'college_data',
					component: () => import('@/views/marketing/college_data'),
					meta: {
						title: '教程内容',
						noCache: true,
					}
				},
				{
					path: '/ask_list',
					name: 'ask_list',
					component: () => import('@/views/marketing/ask_list'),
					meta: {
						title: '提问列表',
						noCache: true,
					}
				},
				{
					path: '/answer_list',
					name: 'answer_list',
					component: () => import('@/views/marketing/answer_list'),
					meta: {
						title: '回答列表',
						noCache: true,
					}
				},
				{
					path: "/leave_word_list",
					name: "leave_word_list",
					component: () => import('@/views/marketing/leave_word_list'),
					meta: {
						title: '留言建议列表',
						noCache: true
					}
				},
				{
					path: '/coupon_list',
					name: 'coupon_list',
					component: () => import('@/views/marketing/coupon_list'),
					meta: {
						title: '优惠券列表',
						noCache: true,
					}
				},
				{
					path: '/coupon_collection_list',
					name: 'coupon_collection_list',
					component: () => import('@/views/marketing/coupon_collection_list'),
					meta: {
						title: '优惠卷领取记录',
						noCache: true,
					}
				},
				{
					path: '/coupon_data',
					name: 'coupon_data',
					component: () => import('@/views/marketing/coupon_data'),
					meta: {
						title: '优惠券详情',
						noCache: true,
					}
				},
				{
					path: "/red_envelopes_list",
					name: "red_envelopes_list",
					component: () => import('@/views/marketing/red_envelopes_list'),
					meta: {
						title: "红包列表",
						noCache: true
					}
				},
				{
					path: "/red_envelopes_receive_list",
					name: "red_envelopes_receive_list",
					component: () => import('@/views/marketing/red_envelopes_receive_list'),
					meta: {
						title: "红包领取列表",
						noCache: true
					}
				},
				{
					path: "/lottery_list",
					name: "lottery_list",
					component: () => import('@/views/marketing/lottery_list'),
					meta: {
						title: "大转盘列表",
						noCache: true
					}
				},
				{
					path: '/square_list',
					name: 'square_list',
					component: () => import('@/views/marketing/square_list'),
					meta: {
						title: '广场列表',
						noCache: true
					}
				},
				{
					path: '/square_goods_list',
					name: 'square_goods_list',
					component: () => import('@/views/marketing/square_goods_list'),
					meta: {
						title: '广场商品列表',
						noCache: true
					}
				},
				{
					path: '/kill_list',
					name: 'kill_list',
					component: () => import('@/views/marketing/kill_list'),
					meta: {
						title: '拼团活动列表',
						noCache: true
					}
				}
			]
		},
		// 合作
		{
			path:'/cooperation',
			name:'cooperation',
			component:()=> import('@/views/main.vue'),
			children:[
				{
					path: '/store_list',
					name: 'store_list',
					component: () => import('@/views/cooperation/store_list'),
					meta: {
						title: '店铺列表',
						noCache: false,
					}
				},
				{
					path: "/store_finish",
					name: "store_finish",
					component: () => import('@/views/cooperation/store_finish'),
					meta: {
						title: '店铺装修情况',
						noCache: false
					}
				},
				{
					path: "/store_progress_list",
					name: "store_progress_list",
					component: () => import('@/views/cooperation/store_progress_list'),
					meta: {
						title: "商家进度状态",
						noCache: false
					}
				},
				{
					path: "/store_data",
					name: "store_data",
					component: () => import('@/views/cooperation/store_data'),
					meta: {
						title: '店铺数据',
						noCache: true
					}
				},
				{
					path: '/factory_list',
					name: 'factory_list',
					component: () => import('@/views/cooperation/factory_list'),
					meta: {
						title: '工厂列表',
						noCache: false,
					}
				},
				{
					path: '/edit_factory',
					name: 'edit_factory',
					component: () => import('@/views/cooperation/edit_factory'),
					meta: {
						title: '编辑工厂信息',
						noCache: true,
					}
				},
				{
					path: '/filiale_list',
					name: 'filiale_list',
					component: () => import('@/views/cooperation/filiale_list'),
					meta: {
						title: '分公司列表',
						noCache: true,
					}
				}, {
					path: '/filiale_admin_list',
					name: 'filiale_admin_list',
					component: () => import('@/views/cooperation/filiale_admin_list'),
					meta: {
						title: '分公司管理员',
						noCache: true,
					}
				},
				{
					path: '/cooperate_apply_list',
					name: 'cooperate_apply_list',
					component: () => import('@/views/cooperation/cooperate_apply_list'),
					meta: {
						title: '合作申请列表',
						noCache: true,
					}
				}, 
				{
					path: '/b_store_income',
					name: 'b_store_income',
					component: () => import('@/views/cooperation/b_store_income'),
					meta: {
						title: '商家收入明细',
						noCache: true,
					}
				},
				{
					path: '/cash_out',
					name: 'cash_out',
					component: () => import('@/views/cooperation/cash_out'),
					meta: {
						title: '商家申请提现',
						noCache: true,
					}
				},
				{
					path: '/cash_out_details',
					name: 'cash_out_details',
					component: () => import('@/views/cooperation/cash_out_details'),
					meta: {
						title: '商家提现明细',
						noCache: true,
					}
				},
				{
					path: '/factory_info',
					name: 'factory_info',
					component: () => import('@/views/cooperation/factory_info.vue'),
					meta: {
						title: '工厂介绍',
						noCache: true,
					}
				},
				{
					path: '/factory_fabric',
					name: 'factory_fabric',
					component: () => import('@/views/cooperation/factory_fabric'),
					meta: {
						title: '工厂面料',
						noCache: false,
					}
				},
				{
					path: '/factory_expo_list',
					name: 'factory_expo_list',
					component: () => import('@/views/cooperation/factory_expo_list.vue'),
					meta: {
						title: '展馆照片',
						noCache: false,
					}
				},
				{
					path: '/factory_video_list',
					name: 'factory_video_list',
					component: () => import('@/views/cooperation/factory_video_list.vue'),
					meta: {
						title: '工厂视频',
						noCache: false,
					}
				},
				{
					path: '/factory_sort',
					name: 'factory_sort',
					component: () => import('@/views/cooperation/factory_sort.vue'),
					meta: {
						title: '面料分类',
						noCache: false,
					}
				},
				{
					path: '/client_info_list',
					name: 'client_info_list',
					component: () => import('@/views/cooperation/client_info_list.vue'),
					meta: {
						title: '客户留存列表',
						noCache: false,
					}
				},
				{
					path: '/factory_offline',
					name: 'factory_offline',
					component: () => import('@/views/cooperation/factory_offline.vue'),
					meta: {
						title: '工厂信息',
						noCache: false,
					}
				},
			]
		},
		// 公众号
		{
			path: "/officialAccounts",
			name: "officialAccounts",
			component: () => import('@/views/main.vue'),
			children: [{
					path: "/up_img",
					name: "up_img",
					component: () => import('@/views/officialAccounts/up_img'),
					meta: {
						title: "上传图片",
						noCache: true
					}
				},
				{
					path: "/sop_list",
					name: "sop_list",
					component: () => import('@/views/officialAccounts/sop_list'),
					meta: {
						title: "sop列表",
						noCache: true
					}
				}, {
					path: "/consult_list",
					name: "consult_list",
					component: () => import('@/views/officialAccounts/consult_list'),
					meta: {
						title: "咨询列表",
						noCache: true
					}
				},
				{
					path: "/consult_dialogue",
					name: "consult_dialogue",
					component: () => import('@/views/officialAccounts/consult_dialogue'),
					meta: {
						title: "聊天室",
						noCache: true
					}
				},
				{
					path: "/user_manual_list",
					name: "user_manual_list",
					component: () => import('@/views/officialAccounts/user_manual_list'),
					meta: {
						title: "用户手册",
						noCache: true
					}
				},
				{
					path: "/we_chat_template",
					name: "we_chat_template",
					component: () => import('@/views/officialAccounts/we_chat_template'),
					meta: {
						title: "微信消息模板",
						noCache: true
					}
				}
			]
		},
		// 审核
		{
			path: '/examine',
			name: 'examine',
			component: () => import('@/views/main.vue'),
			children: [{
					path: '/factory_operate',
					name: 'factory_operate',
					component: () => import('@/views/examine/factory_operate.vue'),
					meta: {
						title: '商品审核',
						noCache: true,
					}
				},
				{
					path: '/factory_package',
					name: 'factory_package',
					component: () => import('@/views/examine/factory_package.vue'),
					meta: {
						title: '套餐审核(工厂)',
						noCache: true,
					}
				},
				{
					path: '/factory_case',
					name: 'factory_case',
					component: () => import('@/views/examine/factory_case'),
					meta: {
						title: '案例审核',
						noCache: true,
					}
				},
				{
					path: '/goods_examine_details',
					name: 'goods_examine_details',
					component: () => import('@/views/examine/goods_examine_details.vue'),
					meta: {
						title: '审核详情',
						noCache: true,
					}
				},
				{
					path: '/comment_examine',
					name: 'comment_examine',
					component: () => import('@/views/examine/comment_examine.vue'),
					meta: {
						title: '评论审核',
						noCache: true,
					}
				},
				{
					path: '/vr_comment_examine',
					name: 'vr_comment_examine',
					component: () => import('@/views/examine/vr_comment_examine.vue'),
					meta: {
						title: 'VR评论审核',
						noCache: true,
					}
				},
				{
					path: '/factory_comment',
					name: 'factory_comment',
					component: () => import('@/views/examine/factory_comment.vue'),
					meta: {
						title: '评论审核',
						noCache: true,
					}
				},
				{
					path: '/goods_examine',
					name: 'goods_examine',
					component: () => import('@/views/examine/goods_examine'),
					meta: {
						title: '商品审核',
						noCache: false,
					}
				},
				{
					path: '/package_examine',
					name: 'package_examine',
					component: () => import('@/views/examine/package_examine'),
					meta: {
						title: '套餐审核',
						noCache: false,
					}
				},
				{
					path: '/case_examine',
					name: 'case_examine',
					component: () => import('@/views/examine/case_examine'),
					meta: {
						title: '案例审核',
						noCache: true,
					}
				},
				{
					path: '/factory_info_examine',
					name: 'factory_info_examine',
					component: () => import('@/views/examine/factory_info_examine'),
					meta: {
						title: '工厂信息审核',
						noCache: true,
					}
				},
				{
					path: '/factory_info_details',
					name: 'factory_info_details',
					component: () => import('@/views/examine/factory_info_details'),
					meta: {
						title: '审核详情',
						noCache: true,
					}
				},
				{
					path: '/case_examine_details',
					name: 'case_examine_details',
					component: () => import('@/views/examine/case_examine_details'),
					meta: {
						title: '审核详情',
						noCache: true,
					}
				},
				{
					path: '/factory_image_video_examine',
					name: 'factory_image_video_examine',
					component: () => import('@/views/examine/factory_image_video_examine'),
					meta: {
						title: '工厂素材审核',
						noCache: true,
					}
				},
				{
					path: '/cash_examine',
					name: 'cash_examine',
					component: () => import('@/views/examine/cash_examine'),
					meta: {
						title: '提现审核',
						noCache: true,
					}
				},
				{
					path: '/withdrawal-details',
					name: 'withdrawal-details',
					component: () => import('@/views/examine/withdrawal-details'),
					meta: {
						title: '提现详情',
						noCache: true,
					}
				},
				
				{
					path: "/delivery_time_quiz_list",
					name: "delivery_time_quiz_list",
					component: () => import('@/views/examine/delivery_time_quiz_list'),
					meta: {
						title: '货期提问',
						noCache: true
					}
				},
				{
					path: "/delivery_time_answer_list",
					name: "delivery_time_answer_list",
					component: () => import('@/views/examine/delivery_time_answer_list'),
					meta: {
						title: "货期回答",
						noCache: true
					}
				},
				{
					path: "/migration_list",
					name: "migration_list",
					component: () => import('@/views/examine/migration_list'),
					meta: {
						title: "用户迁徒审核",
					}
				},
				{
					path: "/purchase_examine",
					name: "purchase_examine",
					component: () => import('@/views/examine/purchase_examine'),
					meta: {
						title: "采购审核",
					}
				},
				{
					path: "/stock_examine",
					name: "stock_examine",
					component: () => import('@/views/examine/stock_examine'),
					meta: {
						title: "入库审核",
					}
				},
				{
					path: "/stock_examine_factory",
					name: "stock_examine_factory",
					component: () => import('@/views/examine/stock_examine_factory'),
					meta: {
						title: "入库审核（工厂）",
					}
				},
				{
					path: "/settle_examine",
					name: "settle_examine",
					component: () => import('@/views/examine/settle_examine'),
					meta: {
						title: "结算审核",
					}
				},
				{
					path: "/settle_examine_factory",
					name: "settle_examine_factory",
					component: () => import('@/views/examine/settle_examine_factory'),
					meta: {
						title: "结算审核（工厂）",
					}
				},
				{
					path: "/prestore_examine",
					name: "prestore_examine",
					component: () => import('@/views/examine/prestore_examine'),
					meta: {
						title: "预存审核",
					}
				},
			]
		},
		// 设置
		{
			path: '/setting',
			name: 'setting',
			component: () => import('@/views/main.vue'),
			children: [{
					path: '/user_setting',
					name: 'user_setting',
					component: () => import('@/views/setting/user_setting'),
					meta: {
						title: '安全设置',
						noCache: true,
					}
				},
				{
					path: '/store_setting',
					name: 'store_setting',
					component: () => import('@/views/setting/store_setting'),
					meta: {
						title: '店铺信息',
						noCache: true,
					}
				},
				{
					path: '/storehouse',
					name: 'storehouse',
					component: () => import('@/views/setting/storehouse'),
					meta: {
						title: '仓库设置',
						noCache: true,
					}
				},
				{
					path: '/logistics_list',
					name: 'logistics_list',
					component: () => import('@/views/setting/logistics_list'),
					meta: {
						title: '物流点列表',
						noCache: true,
					}
				},
				{
					path: '/add_logistics',
					name: 'add_logistics',
					component: () => import('@/views/setting/add_logistics'),
					meta: {
						title: '添加物流点',
						noCache: true,
					}
				},
				{
					path: '/message_list',
					name: 'message_list',
					component: () => import('@/views/setting/message_list'),
					meta: {
						title: '信息列表',
						noCache: true,
					}
				},
				{
					path: '/logistics_manage',
					name: 'logistics_manage',
					component: () => import('@/views/setting/logistics_manage'),
					meta: {
						title: '物流管理',
						noCache: true,
					}
				},
				{
					path: '/transaction_settings',
					name: 'transaction_settings',
					component: () => import('@/views/setting/transaction_settings'),
					meta: {
						title: '交易设置',
						noCache: true,
					}
				},
				{
					path: '/platform_logistics',
					name: 'platform_logistics',
					component: () => import('@/views/setting/platform_logistics'),
					meta: {
						title: '平台物流',
						noCache: true,
					}
				},
			]
		},
		// 系统
		{
			path:'/system',
			name:'system',
			component:()=> import('@/views/main.vue'),
			children:[
				{
					path: '/menu_list',
					name: 'menu_list',
					component: () => import('@/views/system/menu_list'),
					meta: {
						title: '系统菜单',
						noCache: true,
					}
				},
				{
					path: '/plugin_list',
					name: 'plugin_list',
					component: () => import('@/views/system/plugin_list'),
					meta: {
						title: '插件列表',
						noCache: true,
					}
				},
				{
					path: '/plugin_use',
					name: 'plugin_use',
					component: () => import('@/views/system/plugin_use'),
					meta: {
						title: '用户插件',
						noCache: true,
					}
				},
				{
					path: '/notice_list',
					name: 'notice_list',
					component: () => import('@/views/system/notice_list'),
					meta: {
						title: '系统公告',
						noCache: true,
					}
				},
				{
					path: '/tidings_list',
					name: 'tidings_list',
					component: () => import('@/views/system/tidings_list'),
					meta: {
						title: '操作信息',
						noCache: true,
					}
				},
			]
		}
	]
})
// 解决ElementUI导航栏中的vue-router在3.0版本以上重复点菜单报错问题
const originalPush = Router.prototype.push
Router.prototype.push = function push(location) {
	return originalPush.call(this, location).catch(err => err)
}